{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>头部</title>
    <link href="{% static 'assets/css/amazeui.css' %}" rel="stylesheet" type="text/css" />
    <link href="{% static 'assets/css/admin.css' %}" rel="stylesheet" type="text/css" />
    <link href="{% static 'basic/css/demo.css' %}" rel="stylesheet" type="text/css" />
    <link href="{% static 'css/hmstyle.css' %}" rel="stylesheet" type="text/css" />
    <script src="{% static 'assets/js/jquery.min.js' %}"></script>
    <script src="{% static 'assets/js/amazeui.min.js' %}"></script>
</head>
<body>
    <div class="hmtop">
        <!--顶部导航条 -->
        <div class="am-container header">
            <ul class="message-l">
                <div class="topMessage">
                    <div class="menu-hd">
                        {% if user.is_authenticated %}
                            Welcom: <span style="color: #0a628f">{{ user.username }}</span>
                            <span id="checkout_btn"><a href="{% url 'home:logout' %}" style="color: red">退出登录</a></span>
                        {% else %}
                            <a href="{% url 'home:login' %}" target="_top" class="h">亲，请登录</a>
                            <a href="{% url 'home:register' %}" target="_top">免费注册</a>
                        {% endif %}
                    </div>
                </div>
            </ul>
            <ul class="message-r">
                <div class="topMessage home">
                    <div class="menu-hd"><a href="{% url 'home:homepage' %}" target="_top" class="h">商城首页</a></div>
                </div>
                <div class="topMessage my-shangcheng">
                    <div class="menu-hd MyShangcheng"><a href="{% url 'myself:index' %}" target="_top"><i class="am-icon-user am-icon-fw"></i>个人中心</a></div>
                </div>
                <div class="topMessage mini-cart">
                    <div class="menu-hd"><a id="mc-menu-hd" href="{% url 'home:shopcart' %}" target="_top"><i class="am-icon-shopping-cart  am-icon-fw"></i><span>购物车</span><strong id="J_MiniCartNum" class="h">0</strong></a></div>
                </div>
                <div class="topMessage favorite">
                    <div class="menu-hd"><a href="{% url 'myself:myself_collection' %}" target="_top"><i class="am-icon-heart am-icon-fw"></i><span>收藏夹</span></a></div>
                </div>
            </ul>
        </div>

				<!--悬浮搜索框-->

				<div class="nav white">
					<div class="logo"><img src="{% static 'images/logo.png' %}" /></div>
					<div class="logoBig">
						<li><img src="{% static 'images/logobig.png' %}" /></li>
					</div>

					<div class="search-bar pr">
						<a name="index_none_header_sysc" href="#"></a>
						<form>
							<input id="searchInput" name="index_none_header_sysc" type="text" placeholder="搜索" autocomplete="off">
							<input id="ai-topsearch" class="submit am-btn" value="搜索" index="1" type="submit">
						</form>
					</div>
				</div>

				<div class="clear"></div>
			</div>
</body>
</html>